package com.tuanzi.loan.web.bean.jiafang;

import javax.annotation.PostConstruct;
import javax.faces.bean.ViewScoped;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.tuanzi.loan.business.service.family.LoanApiRecordService;
import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.vo.request.jiafang.NuanXinDaiUnionSearchRequest;
import com.tuanzi.loan.vo.response.jiafang.NuanXinDaiUnionSearchResponse;
import com.tuanzi.loan.web.configuration.JSFListingBean;
import com.tuanzi.loan.web.lazy.jiafang.NuanXinDaiUnionLazyDataModel;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @author chenweijun 2017/11/08
 *
 */
@Data
@Debug
@Component
@ViewScoped
@EqualsAndHashCode(callSuper = true)
public class NuanXinDaiUnionBean extends JSFListingBean<NuanXinDaiUnionSearchRequest, NuanXinDaiUnionSearchResponse> {

	
	private static final long serialVersionUID = -6019766871948518317L;
	
	@Autowired
	private LoanApiRecordService loanApiRecordService;
	
	@PostConstruct
	private void init() {
		initLazyDataModel();
	}
	
	private void initLazyDataModel() {
		$ = new NuanXinDaiUnionSearchRequest();
		lazyDataModel = new NuanXinDaiUnionLazyDataModel($);
	}

}
